<?php

namespace easyTbk\taobao\request;

use api\channel\taobao\EleOrderChannel;
use Dml\EasyTBK\TaoBao\RequestCheckUtil;

class EleOfficialactivityGetRequest
{
    public $sid;

    public function __construct($sid)
    {
        $this->sid = $sid;
    }


    private $apiParas = array();

    public function getApiMethodName()
    {
        return "alibaba.alsc.union.eleme.promotion.officialactivity.get";
    }

    public function getApiParas()
    {


        $data = [
            'query_request' => json_encode(
                [
                    'activity_id' => EleOrderChannel::ACTIVITY_ID,
                'pid' => EleOrderChannel::PID,
                'sid' => $this->sid
                ],true)
        ];


        return $data;
    }

    public function check()
    {
//        RequestCheckUtil::checkNotNull($this->fields, "fields");
    }

}